twd-m4sc0 1.5.1__py3-none-any.whl → 1.5.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
twd/twd.py CHANGED
@@ -176,8 +176,8 @@ def main():
176
176
 
177
177
  # Optional Arguments/Flags
178
178
  parser.add_argument('-s', '--save', action='store_true', help="Save the current or specified directory")
179
- parser.add_argument('-d', '--directory', help="Directory to save")
180
- parser.add_argument('-a', '--alias', help="Alias for the saved directory")
179
+ parser.add_argument('-d', '--dir', nargs='?', help="Directory to save")
180
+ parser.add_argument('-a', '--ali', nargs='?', help="Alias for the saved directory")
181
181
  parser.add_argument('-g', '--go', action='store_true', help="Go to the saved directory")
182
182
  parser.add_argument('-l', '--list', action='store_true', help="Show saved TWD")
183
183
  parser.add_argument('-u', '--unset', action='store_true', help="Unset the saved TWD")
@@ -211,14 +211,14 @@ def main():
211
211
  ''')
212
212
  return 0
213
213
 
214
- directory = args.directory or args.directory
215
- alias = args.alias or args.alias
214
+ directory = args.directory or args.dir
215
+ alias = args.alias or args.ali
216
216
 
217
217
  if args.save:
218
218
  if not directory:
219
219
  directory = args.directory or os.getcwd()
220
220
 
221
- alias = args.alias or args.alias
221
+ alias = args.alias or args.ali
222
222
 
223
223
  save_directory(directory, alias, output, simple_output)
224
224
  elif args.go:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: twd_m4sc0
3
- Version: 1.5.1
3
+ Version: 1.5.2
4
4
  Summary: A tool to temporarily save and go to a working directory
5
5
  Home-page: https://github.com/m4sc0/twd
6
6
  Author: m4sc0
@@ -0,0 +1,11 @@
1
+ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ tests/test_twd.py,sha256=XrxOo99oqida_7qZ48pA6BCazZekDmG5syw9NvjZWDU,484
3
+ twd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ twd/__main__.py,sha256=gM_Py51pQFH3CXdDIuPzBW6eNlFH1UHeRAmgAPWQyik,61
5
+ twd/twd.py,sha256=Mf0-XV9ySblU-bFtMnmzUCv790P9iN_tRtQep1WxhV8,7990
6
+ twd_m4sc0-1.5.2.dist-info/LICENSE,sha256=eQSDjcD_fvOwfjmrzxKJhtZsSI39seMawuvsgeD_dfw,1062
7
+ twd_m4sc0-1.5.2.dist-info/METADATA,sha256=QPNuMjr1u_A_qGsoxHMiThZxX57eBxa5bu70ueFJIXw,2341
8
+ twd_m4sc0-1.5.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
9
+ twd_m4sc0-1.5.2.dist-info/entry_points.txt,sha256=QfYDHHjipkVN4oalpACFmIeYHb7GQCJY4SC12bTsiQQ,37
10
+ twd_m4sc0-1.5.2.dist-info/top_level.txt,sha256=PXToru2Yr2Xh3F_F-pHXtuOQVp5x7KKCPFf94P_VI5U,10
11
+ twd_m4sc0-1.5.2.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- tests/test_twd.py,sha256=XrxOo99oqida_7qZ48pA6BCazZekDmG5syw9NvjZWDU,484
3
- twd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- twd/__main__.py,sha256=gM_Py51pQFH3CXdDIuPzBW6eNlFH1UHeRAmgAPWQyik,61
5
- twd/twd.py,sha256=N-wBGkLgFQ5f5Prml56-MdpBBR9y1OekZZTeZxNz-go,7986
6
- twd_m4sc0-1.5.1.dist-info/LICENSE,sha256=eQSDjcD_fvOwfjmrzxKJhtZsSI39seMawuvsgeD_dfw,1062
7
- twd_m4sc0-1.5.1.dist-info/METADATA,sha256=FJkYLm_PtFlwmqbIo5a2n9LiKnvjN3kAbUNS5nlxX6I,2341
8
- twd_m4sc0-1.5.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
9
- twd_m4sc0-1.5.1.dist-info/entry_points.txt,sha256=QfYDHHjipkVN4oalpACFmIeYHb7GQCJY4SC12bTsiQQ,37
10
- twd_m4sc0-1.5.1.dist-info/top_level.txt,sha256=PXToru2Yr2Xh3F_F-pHXtuOQVp5x7KKCPFf94P_VI5U,10
11
- twd_m4sc0-1.5.1.dist-info/RECORD,,