Skip to content

Commit

Permalink
Fix #47
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-van-Tol committed Sep 27, 2023
1 parent e9e5ff9 commit 5ff3c8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/litexcnc/cli/install_litex.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
import requests

@click.command()
@click.option('--user', is_flag=True)
@click.option('--directory', '-d')
@click.option('--user', is_flag=True, help="Install Litex in your home directory")
@click.option('--directory', '-d', help="Install Litex in specific location")
def cli(user, directory):
"""Installs Litex from https://github.com/enjoy-digital/litex in HOME"""

# Create the directory
target = directory
if user:
target = directory if directory else '/opt'
if user and not directory:
target = str(Path.home())
target = os.path.join(target, 'litex')

Expand Down

0 comments on commit 5ff3c8c

Please sign in to comment.