mindly.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mindly.Social is an English speaking, friendly Mastodon instance created for people who want to use their brains and their hearts to make social networking more social. 🧠💖

Administered by:

Server stats:

1.2K
active users

#TerminalApp

0 posts0 participants0 posts today
Jochen Wolters<p>Quick tip for <a href="https://mastodon.social/tags/macOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOS</span></a> users (so you won’t feel as stumped as I did):</p><p>If you’re migrating to a new Mac, and you use the command line, remember to give <a href="https://mastodon.social/tags/TerminalApp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TerminalApp</span></a> full disk access via System Settings &gt; Privacy &amp; Security.</p><p>Without this, you’ll run into errors which seem utterly obscure in the context of a UNIX shell. For example, I got an “Operation not permitted” error when trying a simple ‘ls’ in a folder for which I have full access permissions. 😬</p><p>With full disk access, and all's well again.</p>
C.<p><span class="h-card" translate="no"><a href="https://mastodon.social/@PythonMorsels" class="u-url mention">@<span>PythonMorsels</span></a></span> </p><p>While it&#39;s still possible to use argparse (or even the lower-level optparse or getopt modules), argparse is still a fairly low-level tool.</p><p>You can get shorter, more expressive code, with a lot more of the boilerplate done for you, by using the `click` package instead of using argparse directly.</p><p><a href="https://mindly.social/tags/click" class="mention hashtag" rel="tag">#<span>click</span></a> <a href="https://mindly.social/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> <a href="https://mindly.social/tags/TerminalApp" class="mention hashtag" rel="tag">#<span>TerminalApp</span></a></p>