Skip to content

Commit bd28b69

Browse files
committed
Added help; changed 'infile' to 'input-file' for style consistency
1 parent 7ca4d01 commit bd28b69

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

HELP

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
usage: pyshuf [-h] [-e] [-i lo-hi] [-n count] [--input-file INPUT_FILE]
2+
3+
optional arguments:
4+
-h, --help show this help message and exit
5+
-e, --echo Treat each command-line operand as an input line
6+
-i lo-hi, --input-range lo-hi
7+
Act as if input came from a file containing the range of unsigned decimal integers lo...hi, one per line.
8+
-n count, --head-count count
9+
Output at most count lines
10+
--input-file INPUT_FILE

pyshuf/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def lo_hi(lo_hi_str):
4343
def main():
4444

4545
parser = argparse.ArgumentParser()
46-
parser.add_argument("--infile", type=file)
4746
parser.add_argument("-e","--echo",
4847
action="store_true",
4948
help="Treat each command-line operand as an input line")
@@ -54,6 +53,7 @@ def main():
5453
metavar="count",
5554
type=int,
5655
help="Output at most count lines")
56+
parser.add_argument("--input-file", type=file)
5757

5858
try:
5959
args, unk = parser.parse_known_args()

0 commit comments

Comments
 (0)