Mercurial > hg
comparison tests/test-alias.t @ 38788:a9ff2b0c11dd
dispatch: show a short error message when invalid global option given
Similar reasoning as the previous patch.
Differential Revision: https://phab.mercurial-scm.org/D4025
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 24 Jul 2018 10:47:42 -0700 |
parents | 004ecdbe96ec |
children | 0d703063d0c8 |
comparison
equal
deleted
inserted
replaced
38787:5199c5b6fd29 | 38788:a9ff2b0c11dd |
---|---|
649 | 649 |
650 invalid global arguments for normal commands, aliases, and shell aliases | 650 invalid global arguments for normal commands, aliases, and shell aliases |
651 | 651 |
652 $ hg --invalid root | 652 $ hg --invalid root |
653 hg: option --invalid not recognized | 653 hg: option --invalid not recognized |
654 Mercurial Distributed SCM | 654 (use 'hg help -v' for a list of global options) |
655 | |
656 basic commands: | |
657 | |
658 add add the specified files on the next commit | |
659 annotate show changeset information by line for each file | |
660 clone make a copy of an existing repository | |
661 commit commit the specified files or all outstanding changes | |
662 diff diff repository (or selected files) | |
663 export dump the header and diffs for one or more changesets | |
664 forget forget the specified files on the next commit | |
665 init create a new repository in the given directory | |
666 log show revision history of entire repository or files | |
667 merge merge another revision into working directory | |
668 pull pull changes from the specified source | |
669 push push changes to the specified destination | |
670 remove remove the specified files on the next commit | |
671 serve start stand-alone webserver | |
672 status show changed files in the working directory | |
673 summary summarize working directory state | |
674 update update working directory (or switch revisions) | |
675 | |
676 (use 'hg help' for the full list of commands or 'hg -v' for details) | |
677 [255] | 655 [255] |
678 $ hg --invalid mylog | 656 $ hg --invalid mylog |
679 hg: option --invalid not recognized | 657 hg: option --invalid not recognized |
680 Mercurial Distributed SCM | 658 (use 'hg help -v' for a list of global options) |
681 | |
682 basic commands: | |
683 | |
684 add add the specified files on the next commit | |
685 annotate show changeset information by line for each file | |
686 clone make a copy of an existing repository | |
687 commit commit the specified files or all outstanding changes | |
688 diff diff repository (or selected files) | |
689 export dump the header and diffs for one or more changesets | |
690 forget forget the specified files on the next commit | |
691 init create a new repository in the given directory | |
692 log show revision history of entire repository or files | |
693 merge merge another revision into working directory | |
694 pull pull changes from the specified source | |
695 push push changes to the specified destination | |
696 remove remove the specified files on the next commit | |
697 serve start stand-alone webserver | |
698 status show changed files in the working directory | |
699 summary summarize working directory state | |
700 update update working directory (or switch revisions) | |
701 | |
702 (use 'hg help' for the full list of commands or 'hg -v' for details) | |
703 [255] | 659 [255] |
704 $ hg --invalid blank | 660 $ hg --invalid blank |
705 hg: option --invalid not recognized | 661 hg: option --invalid not recognized |
706 Mercurial Distributed SCM | 662 (use 'hg help -v' for a list of global options) |
707 | |
708 basic commands: | |
709 | |
710 add add the specified files on the next commit | |
711 annotate show changeset information by line for each file | |
712 clone make a copy of an existing repository | |
713 commit commit the specified files or all outstanding changes | |
714 diff diff repository (or selected files) | |
715 export dump the header and diffs for one or more changesets | |
716 forget forget the specified files on the next commit | |
717 init create a new repository in the given directory | |
718 log show revision history of entire repository or files | |
719 merge merge another revision into working directory | |
720 pull pull changes from the specified source | |
721 push push changes to the specified destination | |
722 remove remove the specified files on the next commit | |
723 serve start stand-alone webserver | |
724 status show changed files in the working directory | |
725 summary summarize working directory state | |
726 update update working directory (or switch revisions) | |
727 | |
728 (use 'hg help' for the full list of commands or 'hg -v' for details) | |
729 [255] | 663 [255] |
730 | 664 |
731 environment variable changes in alias commands | 665 environment variable changes in alias commands |
732 | 666 |
733 $ cat > $TESTTMP/expandalias.py <<EOF | 667 $ cat > $TESTTMP/expandalias.py <<EOF |